package qc.module.platform.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import qc.module.platform.entity.QcParamValueLog;
import qc.module.platform.repository.QcParamValueLogRepository;

import java.util.List;

/**
 * ParamValueLogService
 *
 * @author QuCheng Tech
 * @since 2024/2/21
 */
@Service
public class ParamValueLogService {
    private QcParamValueLogRepository repository;

    private IParamValueLogBatchService batchService;

    @Autowired
    public void setRepository(QcParamValueLogRepository repository) {
        this.repository = repository;
    }

    @Autowired
    public void setIParamValueLogBatchService(IParamValueLogBatchService batchService) {
        this.batchService = batchService;
    }

    public void batchSaveLogs(List<QcParamValueLog> ens) {
        batchService.saveBatch(ens);
    }

}
